var t = require("../../services/api.js");

Page({
    data: {
        lists: [],
        count: 0,
        page: 1
    },
    onLoad: function(t) {},
    onReady: function() {},
    onShow: function() {
        this.getLists();
    },
    getLists: function() {
        var a = this, n = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 1;
        (0, t.memberWithdrawLists)({
            page: n,
            pageSize: 8
        }).then(function(t) {
            200 === t.data.code && a.setData({
                lists: n > 1 ? [].concat(a.data.lists, t.data.data.list) : t.data.data.list,
                count: t.data.data.count,
                page: n
            });
        });
    },
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {
        var t = this.selectComponent("#pagination");
        if (!t) return !1;
        var a = t.hasMore();
        a && this.getLists(a);
    },
    onShareAppMessage: function() {}
});